<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en" class="fly-html-layui fly-html-store">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/front/layui/dist/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/layui/css/public.css" media="all">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/front/css/global.css" charset="utf-8">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/front/css/global(1).css" charset="utf-8">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/front/css/store.css" charset="utf-8">
    <link rel="icon" href="${pageContext.request.contextPath}/statics/front/images/favicon.ico">
    <title>我的-个人信息修改</title>
<body>
<!-- 顶部start -->
<div class="layui-header header header-store" style="background-color: #393D49;">
    <div class="layui-container">
        <a class="logo" href="index.html">
            <img src="${pageContext.request.contextPath}/statics/front/images/logo.png" alt="layui">
        </a>
        <div class="layui-form component" lay-filter="LAY-site-header-component"></div>
        <ul class="layui-nav" id="layui-nav-userinfo">
            <li data-id="index" class="layui-nav-item layui-hide-xs ">
                <a class="fly-case-active" data-type="toTopNav" href="/index.html">首页</a>
            </li>

            <c:if test="${sessionScope.loginUser ==null}">
                <li data-id="login" class="layui-nav-item layui-hide-xs ">
                    <a class="fly-case-active" data-type="toTopNav" href="/login.html">登录</a>
                </li>
                <li data-id="register" class="layui-nav-item layui-hide-xs ">
                    <a class="fly-case-active" data-type="toTopNav" href="/register.html">注册</a>
                </li>
            </c:if>
            <c:if test="${sessionScope.loginUser !=null}">
                <li data-id="room" class="layui-nav-item layui-hide-xs " >
                    <a class="fly-case-active" data-type="toTopNav" href="JavaScript:void(0);">我的预定</a>
                </li>
                <li data-id="" class="layui-nav-item layui-hide-xs ">
                    <span>欢迎您，尊贵的
                        <span style="color:#16b777">${sessionScope.loginUser.loginName}</span></span>
                </li>
                <li data-id="register" class="layui-nav-item layui-hide-xs layui-this">
                    <a class="fly-case-active" data-type="toTopNav" href="/userinfo.html">我的信息</a>
                </li>
                <li data-id="register" class="layui-nav-item layui-hide-xs ">
                    <a class="fly-case-active" data-type="toTopNav" href="/user/logout">注销</a>
                </li>
            </c:if>

            <span class="layui-nav-bar" style="left: 560px; top: 55px; width: 0px; opacity: 0;"></span>
        </ul>
    </div>
</div>
<!-- 顶部end -->

<!-- 中间区域开始 -->
<div class="layui-container">
    <form class="layui-form" id="myForm" action="/user/update">
        <div class="layui-form-item">
            <label class="layui-form-label">登陆名称</label>
            <div class="layui-input-block">
                <input type="text" name="loginName" class="layui-input" value="${info.loginName}" readonly required lay-verify="required" placeholder="请输入登陆名称">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">修改密码</label>
            <div class="layui-input-block">
                <input type="password" name="password" class="layui-input"  placeholder="请输入当前需要修改密码为...（不修改请忽略）">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">真实姓名</label>
            <div class="layui-input-block">
                <input type="text" name="realName" class="layui-input" value="${info.realName}" required lay-verify="required" placeholder="请输入真实姓名">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">身份证号</label>
            <div class="layui-input-block">
                <input type="text" name="idCard" class="layui-input" value="${info.idCard}" required lay-verify="required" placeholder="请输入身份证号">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-block">
                <input type="text" name="phone" class="layui-input" value="${info.phone}" required lay-verify="required" placeholder="请输入手机号">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
                <input type="text" name="email" class="layui-input" value="${info.email}" required lay-verify="required|email" placeholder="请输入邮箱">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="submitBtn">提交</button>
            </div>
        </div>
    </form>
</div>


</div>



<!-- 脚本开始 -->
<script src="${pageContext.request.contextPath}/statics/layui/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/statics/front/layui/dist/layui.js">
</script>
<!-- 脚本结束 -->
<ul class="layui-fixbar">
    <li class="layui-icon layui-fixbar-top" lay-type="top" style=""></li>
</ul>
<div class="layui-layer-move"></div>

</body>
</html>